import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import '@/assets/css/other.css'



Vue.config.productionTip = false

Vue.directive(

    'loading', {
      inserted(el, binding) {
        binding.value
          ? el.classList.add("loading")
          : el.classList.remove("loading");
      },
      update(el, binding) {
        binding.value
          ? el.classList.add("loading")
          : el.classList.remove("loading");
      },
    }

)

new Vue({
  render: h => h(App),
  //5、注入到 Vue实例中  new Vue({router:router})，建立关联
  router
}).$mount('#app')
